package com.lxyk.service.impl;

import com.lxyk.mapper.DeptMapper;
import com.lxyk.pojo.Dept;
import com.lxyk.service.DeptService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
@Service
public class DeptServiceImpl implements DeptService {
    @Autowired
    private DeptMapper deptMapper;

    @Override
    public List<Dept> query() {
        return deptMapper.GetAll();
    }

    @Override
    public Dept queryByID(Integer deptNo) {
        return deptMapper.selectByID(deptNo);
    }
}
